<?php
/**
 * @author     ：lhw
 * @date       ：Created in 2019/8/4 19:09
 */

namespace app\api\model;


class OrderMaster extends BaseModels
{
    protected $autoWriteTimestamp = 'datetime';

    public function detail(){
        return $this->hasMany('OrderDetail','order_id','id');
    }

    public function useris(){
        return $this->hasOne('Useris','id','useris_id');
    }

    public function send(){
        return $this->hasOne('Pharmacy','id','send_pharmacy');
    }

}